/*
 * @Author: your name
 * @Date: 2021-06-03 22:31:26
 * @LastEditTime: 2021-06-03 23:07:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /qiankun/qiankun-base/src/main.js
 */
import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
import { registerMicroApps, start } from 'qiankun';
Vue.use(ElementUI);


Vue.config.productionTip = false

const apps = [
  {
    name: 'vueApp',
    entry: '//localhost:2000',
    container: '#vue',
    activeRule: '/vue',
  },
  {
    name: 'reactApp',
    entry: '//localhost:3000',
    container: '#react',
    activeRule: '/react',
  },
]

registerMicroApps(apps);
// 启动 qiankun
start();


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
